<?php

namespace Sisesporte\Entity;

use Doctrine\ORM\Mapping as ORM,
        Doctrine\Common\Collections\ArrayCollection;

/**
 * @ORM\Entity
 * @ORM\Table(name="renda_familiar")
 * @ORM\Entity(repositoryClass="Sisesporte\Repository\RendaFamiliarRepository")
 */
class RendaFamiliar {

    public function __construct($options = null) {
        Configurator::configure($this, $options);
        $this->rendaFamiliar = new ArrayCollection;
    }

    /**
     * @var integer $sqRendaFamiliar
     * @ORM\Column(name="sq_renda_familiar", type="integer", nullable=false)
     * @ORM\Id
     * @ORM\GeneratedValue(strategy="AUTO")
     */
    protected $sqRendaFamiliar;

    /**
     * @var decimal $vlRendaFamiliarDe
     * @ORM\Column(name="vl_renda_familiar_de", type="decimal", nullable=false)
     */
    protected $vlRendaFamiliarDe;

    /**
     * @var decimal $vlRendaFamiliarAte
     * @ORM\Column(name="vl_renda_familiar_ate", type="decimal", nullable=false)
     */
    protected $vlRendaFamiliarAte;

    /**
     * @var boolean $stAtivo
     * @ORM\Column(name="st_ativo", type="boolean", nullable=false)
     */
    protected $stAtivo;

    /**
     * @ORM\OneToMany(targetEntity="Sisesporte\Entity\Aluno", mappedBy="sq_renda_familiar")
     */
    protected $rendaFamiliar;

    public function getSqRendaFamiliar() {
        return $this->sqRendaFamiliar;
    }

    public function getVlRendaFamiliarDe() {
        return $this->vlRendaFamiliarDe;
    }

    public function setVlRendaFamiliarDe($vlRendaFamiliarDe) {
        $this->vlRendaFamiliarDe = $vlRendaFamiliarDe;
        return $this;
    }

    public function getVlRendaFamiliarAte() {
        return $this->vlRendaFamiliarAte;
    }

    public function setVlRendaFamiliarAte($vlRendaFamiliarAte) {
        $this->vlRendaFamiliarAte = $vlRendaFamiliarAte;
        return $this;
    }

    public function getStAtivo() {
        return $this->stAtivo;
    }

    public function setStAtivo($stAtivo) {
        $this->stAtivo = $stAtivo;
        return $this;
    }

    public function getRendaFamiliar() {
        return $this->rendaFamiliar;
    }

    public function setRendaFamiliar($rendaFamiliar) {
        $this->rendaFamiliar = $rendaFamiliar;
        return $this;
    }
    
    public function __toString() {
        return '';
    }

    public function toArray() {
        return array(
            'sqRendaFamiliar' => $this->getSqRendaFamiliar(),
            'vlRendaFamiliarDe' => $this->getVlRendaFamiliarDe(),
            'vlRendaFamiliarAte' => $this->getVlRendaFamiliarAte(),
            'stAtivo' => $this->getStAtivo(),
            'rendaFamiliar' => $this->getRendaFamiliar(),
        );
    }

}
